import React from "react"
export default class ProIndex extends React.Component {
    constructor() {
        super()
        this.state = {
            id:''
        }
    }
    componentWillMount(){
        //paht:/proindex/:id
        console.log(this.props.match.params.id)
        this.setState({
            id:this.props.match.params.id
        })
    }
    render() {
        return (
            <div>
                商品详情页{ this.state.id}
            </div>
        )
    }
}